package com.book.service;

import com.book.entity.*;
import com.book.vo.AddressVo;

import java.util.List;

public interface AddressService {
    List<AddressVo> findAddressByUserId(Integer userId);

    int selectDefaultAddressByUserId(Integer userId);
    
    
    int addAddressByUserId(BookUserAddress bookUserAddress) throws Exception;

    int selectAddressCountByUserId(Long userId)throws Exception;


    List<Provinces> findProvincesByCode() throws Exception;

    List<Cities> findCitiesByProvinceCode(String provinceCode) throws Exception;

    List<Areas> findAreasByCityCode(String cityCode) throws Exception;

    List<Streets> findStreetsByAreaCode(String areaCode) throws Exception;

    List<Villages> findVillagesByStreetCode(String streetCode) throws Exception;
}
